package cn.wolfcode.luowowo.comment.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

@Setter@Getter
@Document("answer_remark")  //文档名称
public class RemarkComment {
    @Id //文档id
    private String id;  //mongodb默认的是id
    private Long userInfoId;
    private String userInfoName;
    private String userInfoHeadImgUrl;
    private String context;
    private Long titleId;//社区回答id
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date crateTime;
    private Long time;//计算时间差
    private String reply;//获取文本
}
